package com.ruoyi.storage.config;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class OssAliConfig {

    @Value("${oss.ali.pub.regionId}")
    private String regionId;

    @Value("${oss.ali.pub.endpoint}")
    private String endpoint;

    @Value("${oss.ali.pub.bucketName}")
    private String bucketName;

    @Value("${oss.ali.pub.hostUrl}")
    private String hostUrl;


    @Value("${oss.ali.pri.regionId}")
    private String priRegionId;

    @Value("${oss.ali.pri.endpoint}")
    private String priEndpoint;

    @Value("${oss.ali.pri.bucketName}")
    private String priBucketName;

    @Value("${oss.ali.pri.hostUrl}")
    private String priHostUrl;


    @Value("${oss.ali.accessKey}")
    private String accessKey;

    @Value("${oss.ali.accessSecret}")
    private String accessSecret;


    @Value("${oss.ali.duration}")
    private Long duration;

    @Value("${oss.ali.roleArn}")
    private String roleArn;

    @Value("${oss.ali.roleSessionName}")
    private String roleSessionName;

//    @Value("${oss.ali.policy}")
//    private String policy;

}

